<template>
  <div>
    <a-menu
      mode="inline"
      theme="dark"
      @click="route_to"
      :default-open-keys="['teacher_course']"
      style="min-height: 1000px"
    >
      <a-menu-item key="patrolAction">
        <a-icon type="arrow-up" />
        <span style="color: white">课堂巡视</span>
      </a-menu-item>
      <a-menu-item key="patrolMessage">
        <a-icon type="arrow-up" />
        <span>巡课信息</span>
      </a-menu-item>
    </a-menu>
  </div>
</template>

<script>
export default {
  methods: {
    route_to({ key }) {
      if (this.$route.name !== key) {
        this.$router.push({ name: key });
      }
    },
  },
};
/*<svg class="user-nav__icon">
use xlink:href="../../assets/img/all.svg#icon-chat"></use>
</svg>
 */
</script>
